class Solution {
public:
    int accountBalanceAfterPurchase(int purchaseAmount) {
       int l = purchaseAmount / 10 * 10;
        if(purchaseAmount % 10 >= 5) return 100 - l - 10;
        else return 100 - l;
    }
};